<template>
    <div>
        <mt-swipe :auto="3000">
            <mt-swipe-item v-for='item in imgsList' :key='item.url'>
                <img :src='item.url' :alt='item.message'/>
            </mt-swipe-item>
        </mt-swipe>

        <!-- 九宫格 -->
         <ul class="mui-table-view mui-grid-view mui-grid-9">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                     <img src='../../image/menu1.png'/>
		                    <div class="mui-media-body">新闻资讯</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                     <img src='../../image/menu2.png'/>
		                    <div class="mui-media-body">图片分享</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                     <img src='../../image/menu3.png'/>
		                    <div class="mui-media-body">商品购买</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                    <img src='../../image/menu4.png'/>
		                    <div class="mui-media-body">留言反馈</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                     <img src='../../image/menu5.png'/>
		                    <div class="mui-media-body">视频专区</div></a></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
		                     <img src='../../image/menu6.png'/>
		                    <div class="mui-media-body">联系我们</div></a></li>
		        </ul> 
    </div>
</template>
<script>

import { Toast } from 'mint-ui';
export default {
    data: function() {
        return {
            imgsList: [
                {id: 0, url: '../../image/a.jpg',message:'微软无敌'},
                {id: 1, url: '../../image/b.jpg',message:'蓝天白云'},
                {id: 2, url: '../../image/c.jpg',message:'石破天惊'}
            ]
        }
    },
    methods : {
    //     getList() {
    //         //使用vue-resource请求数据,成功则将数据保存在imgsList中,失败则弹出失败提示框
    //         this.$http.get("xxxx").then(result=> {
    //             if(result.body.status===0) {
    //                 this.imgsList=result.body.message;
    //             }else {
    //                 Toast("添加失败");
    //             }
    //         })
    //     }
     }
}
</script>
<style lang="scss" scoped>
    .mint-swipe {
        height: 150px;
      
        .mint-swipe-item {
            &:nth-child(1) {
                background-color: red;
            }
            &:nth-child(2) {
                background-color: blue;
            }
            &:nth-child(3) {
                background-color: green;
            }
        }

        img {
            width: 100%;
            height: 100%;
        }

        // .mint-swipe-item:nth-child(1) {
        //     background-color: red;
        // }
        // .mint-swipe-item:nth-child(2) {
        //     background-color: green;
        // }
        // .mint-swipe-item:nth-child(3) {
        //     background-color: blue;
        // }
    }

    .mui-grid-9 {
        background-color: white;
        border: 0px;
        img {
            width: 60px;
            height: 60px
        }
        .mui-table-view-cell {
            border: 0px;
        }
    }
</style>
